package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zby
 * @created 2024-06-25 12:09
 * @description
 */
@Data
@Component
@ConfigurationProperties(prefix = "id-worker.config")
public class IdWorkProperties {

    /**
     *  数据中心id
     */
    private long datacenterId;
    /**
     * 机器id
     */
    private long machineId;

}
